package utils;


import org.apache.commons.lang3.StringEscapeUtils;
import org.apache.commons.lang3.StringUtils;
import org.junit.Test;

/**
 * @author zxs
 * @create 2021-03-29 19:50
 */
public class Strings {
    @Test
    public void test1() {

        // System.out.println(StringUtils.isEmpty(""));
        // System.out.println(StringUtils.isEmpty(" "));
        //
        // System.out.println(StringUtils.isBlank(""));
        // System.out.println(StringUtils.isBlank(" "));
        //
        // System.out.println(StringUtils.isAnyEmpty("", null, "zxs"));

        System.out.println("1   "+StringUtils.trim(null));
        System.out.println("2   "+StringUtils.trim(""));

        System.out.println("3   "+StringUtils.trimToEmpty(null));
        System.out.println("4   "+StringUtils.trimToEmpty(""));


        System.out.println("5   "+StringUtils.trimToNull(null));
        System.out.println("6   "+StringUtils.trimToNull(""));

        System.out.println(StringEscapeUtils.escapeHtml3("<html>"));

    }
}
